﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Magic.Core;

/// <summary>
/// 是否加密返回值,目前是全局加密，不需要就贴这个特性
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
public class UnEncryptResponseAttribute : Attribute
{
    /// <summary>
    /// 是否关闭返回值加密
    /// </summary>
    public bool EnableEncrypt { get; }
    public UnEncryptResponseAttribute(bool enableEncrypt = false)
    {
        this.EnableEncrypt = enableEncrypt;
    }
}
